package super02;

public class Worker extends Person{
   /*
    //由于父类里面也有姓名和年龄,所以子类可以不用定义
    //直接通过父类的getter/setter方法来使用
    private String name;
    private int age;*/

    public Worker(String name, int age) {
        //super();
       /* this.name=name;
        this.age=age;*/
        super(name, age);
    }

    /*public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }*/
}
